package com.game.modular.gameCore.map.controller;

import com.game.modular.gameCore.map.domain.CoreCityLink;
import com.game.modular.gameCore.map.service.impl.CoreCityLinkServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import com.game.comment.core.ResponseResult;

import java.util.List;


/**
 * 城池关联(CoreCityLink)表服务控制层
 *
 * @author cxy
 * @since 2024-07-30 20:45:36
 */
@Api(tags = "城池关联(CoreCityLink)") 
@Validated
@RestController
@AllArgsConstructor
@RequestMapping("/coreCityLink")
public class CoreCityLinkController {
    @Resource
    private CoreCityLinkServiceImpl coreCityLinkService;
    
    @ApiOperation("获取城池关联列表")
    @PostMapping("/list")
    public ResponseResult<List<CoreCityLink>> list() {
        return ResponseResult.success(coreCityLinkService.listCache());
    }
}
